<%--
  Created by IntelliJ IDEA.
  User: cyc
  Date: 2021/10/2
  Time: 21:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
</head>
<script>
    var $=layui.$;

</script>
<body>
<div class="main">
    <h2>修改用户</h2>
    <div class="manage">
        <form action="../UserModifyConfirmServlet" class="layui-form" >
            <div class="layui-form-item">
                <label class="layui-form-label">用户名(*)：</label>
                <div class="layui-input-inline">
                    <input type="text"  name="id" class="layui-input" value="${sessionScope.modifyUser.id}" style="display: none" />
                    <input type="text"  name="loginName" class="layui-input" value="${sessionScope.modifyUser.loginName}" lay-verify="required"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">真实姓名(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="userName" class="layui-input" value="${sessionScope.modifyUser.userName}" lay-verify="required"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">登录密码(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="password" class="layui-input" value="${sessionScope.modifyUser.passwoed}" lay-verify="required"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">确认密码(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="password1" class="layui-input" value="${sessionScope.modifyUser.passwoed}" lay-verify="required"/>
                </div>
            </div>



            <div class="layui-form-item">
                <label class="layui-form-label">性别(*)：</label>
                <div class="layui-input-inline">
                    <input type="radio" name="sex" value="1" title="男" lay-verify="required" <c:if test="${sessionScope.modifyUser.sex==1}">checked </c:if> >
                    <input type="radio" name="sex" value="0" title="女" lay-verify="required" <c:if test="${sessionScope.modifyUser.sex==1}">checked </c:if> >
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">身份证(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="identityCode" class="layui-input"  lay-verify="required|identity" value="${sessionScope.modifyUser.identityCode}" />
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">邮箱(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="email" class="layui-input"  lay-verify="required|email" value="${sessionScope.modifyUser.email}" />
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">手机(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="mobile" class="layui-input" lay-verify="required|phone" value="${sessionScope.modifyUser.mobile}"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">地址(*)：</label>
                <div class="layui-input-inline">
                    <input type="text" name="address" class="layui-input" lay-verify="required" value="${sessionScope.modifyUser.address}" />
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <input type="submit"  class="layui-btn" value="确认修改" lay-submit=""/>
                    <a href="user.jsp" class="layui-btn layui-btn-warm">返回</a>
                </div>
            </div>


        </form>
    </div>
</div>
<script src="${pageContext.request.contextPath}/layui/layui.js"></script>
<script>
    layui.use("form",function (){
       var form=layui.form;
    });


</script>
</body>
</html>
